package com.example.echoewish.repository.network;

import com.example.echoewish.repository.network.service.ConcernService;
import com.example.echoewish.util.ServiceCreator;

import retrofit2.Callback;

public class ConcernServiceNetwork {
    public static void concernNewFriend(int hostId, int friId, Callback callback)
    {
        ConcernService concernService=new ServiceCreator().create(ConcernService.class);
        concernService.concernNewFriend(hostId,friId).enqueue(callback);
    }

    public static void cancelConcern(int hostId, int friId, Callback callback)
    {
        ConcernService concernService=new ServiceCreator().create(ConcernService.class);
        concernService.cancelConcern(hostId,friId).enqueue(callback);
    }

    public static void getMyConcern(int hostId, Callback callback)
    {
        ConcernService concernService=new ServiceCreator().create(ConcernService.class);
        concernService.getMyConcern(hostId).enqueue(callback);
    }
}
